def if_stmt4(x, y, z):
if x and y > z:
return y
else:
return z
Function Call | Return Value | |||
---|---|---|---|---|
if_stmt4(True, 3, 1) | → | |||
if_stmt4(False, 3, 1) | → | |||
if_stmt4(True, 10, 3) | → | |||
if_stmt4(False, 11, 3) | → | |||
if_stmt4(False, 51, 32) | → | |||
if_stmt4(True, 1, 0) | → |
Experiment with this code on Gitpod.io